/**
 * Created by Administrator on 2017/10/17.
 */

var mongoose = require('mongoose');
var mongoosePaginate = require('mongoose-paginate');

var schema = new mongoose.Schema({
    name:String,
    password:String,
    age:Number,
    address:String,
    date:{type:Date,default:Date.now}
});
schema.plugin(mongoosePaginate);
var User = mongoose.model('User', schema,'user');
module.exports = User;
